﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="CardsType.aspx.cs" Inherits="Plublic_Cards" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            text-align: right;
            color: #FFFFFF;
            font-weight: bold;
            width: 131px;
        }
        
        .style2
        {
            width: 131px;
        }
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <form method="post" runat="server">
    <table style="width: 100%;">
        <tr>
            <td class="style1">
                Name :
            </td>
            <td>
                <asp:TextBox ID="txtNameCard" runat="server" ForeColor="Red"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                   ControlToValidate="txtNameCard" ErrorMessage="RequiredFieldValidator" 
                    ForeColor="Red" ValidationGroup="CheckNull">*</asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style1">
                Description:
            </td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
            &nbsp;&nbsp;&nbsp;
                </td>
            <td>
                &nbsp;<asp:Button ID="btnAdd" runat="server" Text="Save" OnClick="btnAdd_Click" Height="24px"
                    Width="78px" ValidationGroup="CheckNull" />&nbsp;&nbsp;<asp:Button ID="btnUpdate" 
                    runat="server" Text="Update" onclick="btnUpdate_Click" />
            &nbsp;&nbsp;
                <asp:Label ID="lblkq" runat="server" style="color: #CC3399"></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="3">
                
            </td>
        </tr>
    </table>
    <div class="CSSTableGenerator">
        <asp:GridView ID="GRVCardType" runat="server" AutoGenerateColumns="False" BackColor="#FFFFCC"
                   DataKeyNames="CardTypeID" Width="60%" onrowcommand="GRVCardType_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="Card Type ID">
                            <ItemTemplate>
                                <%# Eval("CardTypeID")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="name">
                            <ItemTemplate>
                                <%# Eval("name")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Descriptions">
                            <ItemTemplate>
                                <%# Eval("Descriptions")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnView" runat="server" CausesValidation="False" CommandName="View"
                                    Width="50" Text="View" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'>
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
    </div>
    </form>
</asp:Content>
